package com.aspose.cells;

class zbcm extends zbz {
   zbcm() {
      this.c(4171);
      this.b(28);
      this.c = new byte[28];
   }

   void a(Trendline var1) {
      this.c[1] = 1;
      switch(var1.getType()) {
      case 0:
         this.c[0] = 1;
      case 1:
      default:
         break;
      case 2:
         this.c[0] = 2;
         break;
      case 3:
         this.c[0] = 4;
         this.c[1] = (byte)var1.getPeriod();
         break;
      case 4:
         this.c[1] = (byte)var1.getOrder();
         break;
      case 5:
         this.c[0] = 3;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getIntercept()), 0, this.c, 2, 8);
      if (!var1.c()) {
         for(int var2 = 2; var2 < 6; ++var2) {
            this.c[var2] = -1;
         }

         this.c[7] = 1;
         this.c[8] = -1;
         this.c[9] = -1;
      }

      if (var1.getDisplayEquation()) {
         this.c[10] = 1;
      }

      if (var1.getDisplayRSquared()) {
         this.c[11] = 1;
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getForward()), 0, this.c, 12, 8);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var1.getBackward()), 0, this.c, 20, 8);
   }
}
